package com.wzy.java;

import com.sun.jmx.snmp.Timestamp;

import java.text.SimpleDateFormat;
import java.util.Date;

public class test4 {
    public static void main(String[] args) {
        Date dNow = new Date();
        SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        String format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss").format(new Date());
//        System.out.println(format);

        Timestamp d = new Timestamp(System.currentTimeMillis());
        System.out.println(d);

        Integer i1 = 1;

    }
}
